//
//  WHTextTipsCell.m
//  BinFengExpressOwner
//
//  Created by 邓伟浩 on 2018/10/20.
//  Copyright © 2018年 BinFeng. All rights reserved.
//

#import "WHTextTipsCell.h"

@implementation WHTextTipsCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        UIView *backgroundViews = [[UIView alloc] initWithFrame:self.frame];
        backgroundViews.backgroundColor = CViewBgMainColor;
        [self setSelectedBackgroundView:backgroundViews];
        
        self.contentView.backgroundColor = KWhiteColor;
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI {
    [self.contentView addSubview:({
        _tipsLabel = [[UILabel alloc] init];
        _tipsLabel.font = SYSTEMFONT(kRealwidth(16));
        _tipsLabel.textColor = CFontTitleBlackColor;
        _tipsLabel.textAlignment = NSTextAlignmentCenter;
        _tipsLabel.text = @"";
        _tipsLabel;
    })];
    [_tipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.contentView);
        make.height.mas_equalTo(kRealwidth(20));
    }];
}

@end
